#!/bin/bash

sed -i 's/\(.*sysCommand("systemctl restart nginx".*\)/# \1/' /usr/lib/python3.6/site-packages/agent/domain/nginx.py
nohup keentuned > /dev/null &
nohup keentune-target > /dev/null &
sleep 5
keentune profile set nginx.conf

nginx -g "daemon off;"
